<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
    <input type="text" class="test" value="1"/>
</head>
<body>

<script>
    $(function () {
        $(".test").val("1111");
    })

</script>
</body>
</html>